# -*- mode:Makefile -*-
include ../Makefile.swig
LANG=lua
LUA_DIR=/usr/local
LUA_VERSION=$(shell lua -v  &> lua.version && grep -o -e '[0-9]\+\.[0-9]\+\.[0-9]\+' lua.version)

CXXFLAGS+=-I$(LUA_DIR)/include -I$(LUA_DIR)/include/lua$(LUA_VERSION)
#DISTCLEANOBJ+=
CLEANOBJ+=$(DISTCLEANOBJ)

install: $(TARGET)
	install -c -m 0755 $(TARGET) $(LUA_DIR)/lib/lua/$(LUA_VERSION)/
